#!/bin/bash

runday='{{ execution_date | cst_ds }}'

hdfs dfs -rm -r /scheduler/jms/spark/sync/check/file/$runday.txt
hdfs dfs -du -h /dw/hive/jms_ods.db/external/*/dt=$runday > $runday.txt
hdfs dfs -put $runday.txt   /scheduler/jms/spark/sync/check/file
